#define _CRT_SECURE_NO_WARNINGS


#include"SeqList.h"

void SeqListTest()
{
	SeqList sl;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushBack(&sl, 4);
	SeqListPushFront(&sl, 5);
	SeqListPushFront(&sl, 6);
	SeqListPushFront(&sl, 7);
	SeqListPushFront(&sl, 8);
	SeqListPushFront(&sl, 9);

	//SeqListPopFront(&sl);
	//SeqListPopFront(&sl);
	//SeqListPopFront(&sl);
	//SeqListPopFront(&sl);

	//SeqListPopBack(&sl);
	//SeqListPopBack(&sl);

	//printf("%d\n", SeqListFind(&sl, 10));


	SeqListErase(&sl, 2);
	SeqListErase(&sl, 2);
	SeqListErase(&sl, 2);
	SeqListErase(&sl, 2);
	SeqListErase(&sl, 2);
	SeqListErase(&sl, 2);
	SeqListPrint(&sl);
	SeqListDestroy(&sl);
}

int main()
{
	SeqListTest();

	return 0;
}